<?php
$note = "";
if (isset($_GET['action']) == "del") {
    $id = $_GET['id'];
    $tinh = new tinh;
	$tinh->set_id($id);
    $tinh->delete_tinh($id);
}

header('Location: ' . $_SERVER['HTTP_REFERER']);

exit();
?>